package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_favorite;

import cn.com.api.mapper.ApiU_favoriteMapper;

import cn.com.api.service.ApiU_favoriteService;

/**
 * 
 **/
@Service
public class U_favoriteServiceImplBase {
	@Autowired
	private ApiU_favoriteMapper apiU_favoriteMapper;
    
    // 根据id获取
	public ApiU_favorite findU_favoriteById(Integer id){
		ApiU_favorite u_favorite = apiU_favoriteMapper.findU_favoriteById( id );
		return u_favorite;
	}
    
    //查看数据集
	public List<ApiU_favorite> findU_favorites(){
        List<ApiU_favorite> u_favorites = apiU_favoriteMapper.findU_favorites();
		return u_favorites;
    }
    
	// 添加
	public int insertU_favorite(ApiU_favorite u_favorite){
		int ret_I= apiU_favoriteMapper.insertU_favorite(u_favorite);
		return ret_I;
	}

	// 修改
	public int updateU_favorite(ApiU_favorite u_favorite){
		int ret_I= apiU_favoriteMapper.updateU_favorite(u_favorite);
		return ret_I;
	}
	
    // 删除
	public int deleteU_favorite(Integer id){
		int ret_I= apiU_favoriteMapper.deleteU_favorite( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


